﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<MRGSP.SurveyMaster.Infra.Dto.UserCreateInput>" %>

<%@ Import Namespace="MRGSP.SurveyMaster.Infra.Dto" %>
<%@ Import Namespace="MRGSP.SurveyMaster.Localization" %>
<%@ Import Namespace="xVal.Html" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Create
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Create user</h2>
    <fieldset>
       
        <form method="post" action="<%=Url.Action("Create") %>">
        <div class="efield">
            <div class="elabel">
                <label for="Login">
                    <%=MUI.Login %></label>
            </div>
            <div class="einput">
                <%= Html.TextBoxFor(o => o.Login) %>
                <%= Html.ValidationMessageFor(o => o.Login) %>
            </div>
        </div>
        <div class="efield">
            <div class="elabel">
                <label for="Password">
                    <%=MUI.Password %></label>
            </div>
            <div class="einput">
                <%= Html.PasswordFor(o => o.Password) %>
                <%= Html.ValidationMessageFor(o => o.Password) %>
            </div>
        </div>
        <div class="efield">
            <div class="elabel">
                <label for="Role">
                    <%=MUI.Role %></label>
            </div>
            <div class="einput">
                <%= Html.DropDownList("Role", Model.Role as IEnumerable<SelectListItem>) %>
                <%= Html.ValidationMessageFor(o => o.Role) %>
            </div>
        </div>
        <div class="efield esubmit">
            <input type="submit" value="submit" />
        </div>
        </form>
        <%=Html.ClientSideValidation<UserCreateInput>() %>
    </fieldset>
</asp:Content>
